package com.vhall.component.entity.notice;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * @author dongsong
 */
@Data
@TableName("notices")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "NoticesEntity对象", description = "公告")
public class NoticesEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("app_id")
    @JsonProperty("app_id")
    private String appId;

    @ApiModelProperty(value = "房间id")
    @TableField("room_id")
    @JsonProperty("room_id")
    private String roomId;

    @ApiModelProperty(value = "用户id")
    @TableField("account_id")
    @JsonProperty("account_id")
    private Integer accountId;

    @ApiModelProperty(value = "内容")
    @TableField("content")
    private String content;

    @TableField("created_at")
    @JsonProperty("created_at")
    private LocalDateTime createdAt;

    @TableField("updated_at")
    @JsonProperty("updated_at")
    private LocalDateTime updatedAt;

    @TableField("deleted_at")
    @JsonProperty("deleted_at")
    private LocalDateTime deletedAt;

    @TableField("red_packet_uuid")
    @JsonProperty("red_packet_uuid")
    private String redPacketUuid;

    @ApiModelProperty(value = "1:红包消息 ，0：公告")
    @TableField("type")
    private Integer type;

}
